package com.soft.line.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 小程序校验证书
 * @author wpb
 * @version 1.0
 * @date 2020/6/15 16:41
 */
@Data
public class AppletCertificate {

    private Integer id;

    private String certId;

    @NotBlank
    @Size(max = 200)
    private String certType;

    @NotBlank
    @Size(max = 100)
    private String certName;

    /*@NotBlank
    @Size(max = 200)
    private String projectName;*/

    @NotBlank
    @Size(max = 200)
    private String certUnit;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date issueDate;

    @Size(max = 200)
    private String note;

    @NotBlank
    private String modifyPerson;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date modifyTime;

    private String delFlg;

    private List<AttachmentInfo> deleteAttachmentList;
}
